﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace MengLin.Studying.PrismApp.Views
{
    /// <summary>
    /// FirstWindow.xaml 的交互逻辑
    /// </summary>
    public partial class Protocol_SIS_View : Window
    {
        public Protocol_SIS_View()
        {
            InitializeComponent();
        }
        private void Badd_Click(object sender, RoutedEventArgs e)
        {
            if (int.TryParse(TxtReplicate.Text, out int value))
            {
                TxtReplicate.Text = (value + 1).ToString();
            }
            else
            {
                TxtReplicate.Text = "1";
            }
        }

        private void Bsubtract_Click(object sender, RoutedEventArgs e)
        {
            if (int.TryParse(TxtReplicate.Text, out int value) && value > 0)
            {
                TxtReplicate.Text = (value - 1).ToString();
            }
        }
    }
}
